﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Sudoku
{
    public class SquareGUI : System.Windows.Forms.TextBox
    {
        private int number;
        private int yCoordinate;
        private int xCoordinate;
        bool locked;


        /// <summary>
        /// Constructor. 
        /// </summary>
        /// <param name="number">The value of the square.</param>
        /// <param name="y">Y-Coordinate</param>
        /// <param name="col">X-Coordinate</param>
        /// <param name="locked">If the value is locked or not. </param>
        public SquareGUI(int number, int row, int col, bool locked)
        {
            this.number = number;
            this.yCoordinate = row;
            this.xCoordinate = col;
            this.locked = locked;
        }

        //PROPERTIES
        public int Number
        {
            get { return number; }
            set { number = value; }
        }
        public int YCoordinate
        {
            get { return yCoordinate; }
        }
        public int XCoordinate
        {
            get { return xCoordinate; }
        }
        public bool Locked
        {
            get { return locked; }
            set { locked = value; }
        }
    }
}
